package com.whnk.pm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.whnk.pm.mapper.WowInfoMapper;
import com.whnk.pm.domain.WowInfo;
import com.whnk.pm.service.IWowInfoService;
import com.whnk.common.support.Convert;

/**
 * 节假日加班登记 服务层实现
 * 
 * @author whwhnk
 * @date 2019-07-25
 */
@Service
public class WowInfoServiceImpl implements IWowInfoService 
{
	@Autowired
	private WowInfoMapper wowInfoMapper;

	/**
     * 查询节假日加班登记信息
     * 
     * @param wowId 节假日加班登记ID
     * @return 节假日加班登记信息
     */
    @Override
	public WowInfo selectWowInfoById(Integer wowId)
	{
	    return wowInfoMapper.selectWowInfoById(wowId);
	}
	
	/**
     * 查询节假日加班登记列表
     * 
     * @param wowInfo 节假日加班登记信息
     * @return 节假日加班登记集合
     */
	@Override
	public List<WowInfo> selectWowInfoList(WowInfo wowInfo)
	{
	    return wowInfoMapper.selectWowInfoList(wowInfo);
	}
	
    /**
     * 新增节假日加班登记
     * 
     * @param wowInfo 节假日加班登记信息
     * @return 结果
     */
	@Override
	public int insertWowInfo(WowInfo wowInfo)
	{
	    return wowInfoMapper.insertWowInfo(wowInfo);
	}
	
	/**
     * 修改节假日加班登记
     * 
     * @param wowInfo 节假日加班登记信息
     * @return 结果
     */
	@Override
	public int updateWowInfo(WowInfo wowInfo)
	{
	    return wowInfoMapper.updateWowInfo(wowInfo);
	}

	/**
     * 删除节假日加班登记对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteWowInfoByIds(String ids)
	{
		return wowInfoMapper.deleteWowInfoByIds(Convert.toStrArray(ids));
	}
	
}
